package com.along.game.model;

import java.math.BigDecimal;

/**
 * SysInfoId entity. @author MyEclipse Persistence Tools
 */

public class SysInfo implements java.io.Serializable {

	// Fields

	private BigDecimal id;
	private String attributeName;
	private String attributeValue;
	private String attributeDetail;

	// Constructors

	/** default constructor */
	public SysInfo() {
	}

	/** full constructor */
	public SysInfo(BigDecimal id, String attributeName,
			String attributeValue, String attributeDetail) {
		this.id = id;
		this.attributeName = attributeName;
		this.attributeValue = attributeValue;
		this.attributeDetail = attributeDetail;
	}

	// Property accessors

	public BigDecimal getId() {
		return this.id;
	}

	public void setId(BigDecimal id) {
		this.id = id;
	}

	public String getAttributeName() {
		return this.attributeName;
	}

	public void setAttributeName(String attributeName) {
		this.attributeName = attributeName;
	}

	public String getAttributeValue() {
		return this.attributeValue;
	}

	public void setAttributeValue(String attributeValue) {
		this.attributeValue = attributeValue;
	}

	public String getAttributeDetail() {
		return this.attributeDetail;
	}

	public void setAttributeDetail(String attributeDetail) {
		this.attributeDetail = attributeDetail;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SysInfo))
			return false;
		SysInfo castOther = (SysInfo) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getAttributeName() == castOther.getAttributeName()) || (this
						.getAttributeName() != null
						&& castOther.getAttributeName() != null && this
						.getAttributeName()
						.equals(castOther.getAttributeName())))
				&& ((this.getAttributeValue() == castOther.getAttributeValue()) || (this
						.getAttributeValue() != null
						&& castOther.getAttributeValue() != null && this
						.getAttributeValue().equals(
								castOther.getAttributeValue())))
				&& ((this.getAttributeDetail() == castOther
						.getAttributeDetail()) || (this.getAttributeDetail() != null
						&& castOther.getAttributeDetail() != null && this
						.getAttributeDetail().equals(
								castOther.getAttributeDetail())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37
				* result
				+ (getAttributeName() == null ? 0 : this.getAttributeName()
						.hashCode());
		result = 37
				* result
				+ (getAttributeValue() == null ? 0 : this.getAttributeValue()
						.hashCode());
		result = 37
				* result
				+ (getAttributeDetail() == null ? 0 : this.getAttributeDetail()
						.hashCode());
		return result;
	}

}